package com.flyco.modules.stm.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门店移库单明细表
 * @Author: flyco
 * @Date:   2021-01-15
 * @Version: V1.0
 */
@Data
@TableName("stm_move_item")
@ApiModel(value="stm_move对象", description="门店移库单表")
public class StmMoveItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**移库单id*/
    @ApiModelProperty(value = "移库单id")
	private Long moveId;
	/**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	@Dict(dictTable ="pms_product",dicText = "name",dicCode = "id")
	private Long productId;
	/**商品货号*/
    @Excel(name = "商品货号", width = 15)
    @ApiModelProperty(value = "商品货号")
	private String productSn;
	/**移库数量*/
    @Excel(name = "移库数量", width = 15)
    @ApiModelProperty(value = "移库数量")
	private Integer productQty;
	/**来源库存类别*/
    @Excel(name = "来源库存类别", width = 15)
    @ApiModelProperty(value = "来源库存类别")
	@Dict(dicCode = "stock_type_move")
	private String fromStockType;
	/**目标库存类别*/
    @Excel(name = "目标库存类别", width = 15)
    @ApiModelProperty(value = "目标库存类别")
	@Dict(dicCode = "stock_type_move")
	private String toStockType;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
